package cclub.demo.response;

import lombok.Getter;

@Getter
public enum ResponseEnum {
    SUCCESS_CODE(200,"成功请求"),
    USER_TOKEN_ERROR(101,"用户没有token权限"),
    INVALID_PARAMETER_ERROR(301,"业务参数错误"),
    USER_OPERATION_ERROR(302,"用户操作过于频繁"),
    SYSTEM_ERROR(501,"系统错误"),
    CHECK_TOKEN_ERROR(102,"验签失败");

    /** 错误码 */
    private final Integer resultCode;

    /** 错误描述 */
    private final String resultMsg;

    ResponseEnum(Integer resultCode, String resultMsg){
        this.resultCode = resultCode;
        this.resultMsg = resultMsg;
    }
}
